package com.sy.action;

import java.io.InputStream;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class DownloadAction extends ActionSupport {

	private static final long serialVersionUID = -8017045580072625496L;

	public InputStream getDownloadFile() {
		return ServletActionContext.getServletContext().getResourceAsStream(
				"/upload/Ajax笔记.txt");
	}

	@Override
	public String execute() throws Exception {

		return SUCCESS;
	}
}